const Mock = require('mockjs')

const data = Mock.mock({
  'list|5': [{
    name: '@cname',
    city: '@city',
    full: '@cname -- @city'
  }]
})

console.log(data)
console.log(Mock.Random.cname())
// console.log(JSON.stringify(data))